home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / rpcsvc / bootparam.h < prev    next >
C/C++ Source or Header  |  1991-07-09  |  2KB  |  88 lines

  1. /*    @(#)bootparam.h    1.3 88/05/08 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  * @(#) from SUN 1.2
  6.  */
  7.  
  8. #ifndef KERNEL
  9. #include <rpc/types.h>
  10. #include <sys/errno.h>
  11. #include <nfs/nfs.h>
  12. #endif
  13. #define    MAX_MACHINE_NAME 255
  14. #define    MAX_PATH_LEN    1024
  15. #define    MAX_FILEID    32
  16. #define    IP_ADDR_TYPE    1
  17.  
  18. typedef char *bp_machine_name_t;
  19.  
  20.  
  21. typedef char *bp_path_t;
  22.  
  23.  
  24. typedef char *bp_fileid_t;
  25.  
  26.  
  27. struct ip_addr_t {
  28.     char net;
  29.     char host;
  30.     char lh;
  31.     char impno;
  32. };
  33. typedef struct ip_addr_t ip_addr_t;
  34.  
  35.  
  36. struct bp_address {
  37.     int address_type;
  38.     union {
  39.         ip_addr_t ip_addr;
  40.     } bp_address;
  41. };
  42. typedef struct bp_address bp_address;
  43.  
  44.  
  45. struct bp_whoami_arg {
  46.     bp_address client_address;
  47. };
  48. typedef struct bp_whoami_arg bp_whoami_arg;
  49.  
  50.  
  51. struct bp_whoami_res {
  52.     bp_machine_name_t client_name;
  53.     bp_machine_name_t domain_name;
  54.     bp_address router_address;
  55. };
  56. typedef struct bp_whoami_res bp_whoami_res;
  57.  
  58.  
  59. struct bp_getfile_arg {
  60.     bp_machine_name_t client_name;
  61.     bp_fileid_t file_id;
  62. };
  63. typedef struct bp_getfile_arg bp_getfile_arg;
  64.  
  65.  
  66. struct bp_getfile_res {
  67.     bp_machine_name_t server_name;
  68.     bp_address server_address;
  69.     bp_path_t server_path;
  70. };
  71. typedef struct bp_getfile_res bp_getfile_res;
  72.  
  73.  
  74. #define BOOTPARAMPROG 100026
  75. #define BOOTPARAMVERS 1
  76. #define BOOTPARAMPROC_WHOAMI 1
  77. #define BOOTPARAMPROC_GETFILE 2
  78.  
  79. bool_t xdr_bp_machine_name_t();
  80. bool_t xdr_bp_path_t();
  81. bool_t xdr_bp_fileid_t();
  82. bool_t xdr_ip_addr_t();
  83. bool_t xdr_bp_address();
  84. bool_t xdr_bp_whoami_arg();
  85. bool_t xdr_bp_whoami_res();
  86. bool_t xdr_bp_getfile_arg();
  87. bool_t xdr_bp_getfile_res();
  88.